cmake_minimum_required(VERSION 3.0)

project(undistort)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

include_directories("/usr/local/include/Eigen")

aux_source_directory(./ SOURCE_DIRS)

add_executable(${PROJECT_NAME} undistort_image.cpp)
add_executable(fisheye fisheye.cpp)

target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBRARIES} )
target_link_libraries(fisheye ${OpenCV_LIBRARIES})
